from django.conf.urls import url
from . import views

urlpatterns = [
    # url(r'^image_codes/29e28586-00df-40ad-9709-d8f158740e14/$', views.ImagecodeView.as_view()), #uuid8+4+4+4+12
    url('^image_codes/(?P<uuid>.+)/$', views.ImagecodeView.as_view()),
    # url('^image_codes/(?P<uuid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', views.ImagecodeView.as_view()),
    # url('^sms_codes/(?P<mobile>1[3-9]\d{9})$', views.SmscodeView.as_view()),

    url('^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SmscodeView.as_view()),

    ]
